<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TProgressBar类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_progress_bar.html">TProgressBar</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_progress_bar-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TProgressBar类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TProgressBar 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_progress_bar.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a529f9e25961e0c1f168d60a190658261"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_progress_bar.html#a529f9e25961e0c1f168d60a190658261">TProgressBar</a> (long nativeObj)</td></tr>
<tr class="separator:a529f9e25961e0c1f168d60a190658261"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fcccb25bb08ac8c7f256b13228b669d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_progress_bar.html#a9fcccb25bb08ac8c7f256b13228b669d">setValue</a> (double value)</td></tr>
<tr class="separator:a9fcccb25bb08ac8c7f256b13228b669d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2e75e0fff2d6c0f1a37f3c50693df6f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_progress_bar.html#ab2e75e0fff2d6c0f1a37f3c50693df6f">setMax</a> (int max)</td></tr>
<tr class="separator:ab2e75e0fff2d6c0f1a37f3c50693df6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ef4c9e99848488a648417da342ff562"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_progress_bar.html#a6ef4c9e99848488a648417da342ff562">setVertical</a> (boolean vertical)</td></tr>
<tr class="separator:a6ef4c9e99848488a648417da342ff562"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14317c09d92c674613e519559bea8bc9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_progress_bar.html#a14317c09d92c674613e519559bea8bc9">setShowText</a> (boolean show_text)</td></tr>
<tr class="separator:a14317c09d92c674613e519559bea8bc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef6561d531ef80d4d55cb57a63175cc3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_progress_bar.html#aef6561d531ef80d4d55cb57a63175cc3">getPercent</a> ()</td></tr>
<tr class="separator:aef6561d531ef80d4d55cb57a63175cc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c876fd30cd677853fd2eb9ccdb07317"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_progress_bar.html#a4c876fd30cd677853fd2eb9ccdb07317">getMax</a> ()</td></tr>
<tr class="separator:a4c876fd30cd677853fd2eb9ccdb07317"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af84ca760363ba0f2aefd17d259f7d9bd"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_progress_bar.html#af84ca760363ba0f2aefd17d259f7d9bd">getVertical</a> ()</td></tr>
<tr class="separator:af84ca760363ba0f2aefd17d259f7d9bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0f80b4834f578cdd8b9935d305d189f"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_progress_bar.html#ad0f80b4834f578cdd8b9935d305d189f">getShowText</a> ()</td></tr>
<tr class="separator:ad0f80b4834f578cdd8b9935d305d189f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a55e958c57b6310dfc7797ae893a64823"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_progress_bar.html">TProgressBar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_progress_bar.html#a55e958c57b6310dfc7797ae893a64823">cast</a> (long nativeObj)</td></tr>
<tr class="separator:a55e958c57b6310dfc7797ae893a64823"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee61cc5487f7a8bfe4c8a43d274d9d6d"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_progress_bar.html#aee61cc5487f7a8bfe4c8a43d274d9d6d">create</a> (TWidget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:aee61cc5487f7a8bfe4c8a43d274d9d6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19a95a893c0d7f924118e090e6504745"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_progress_bar.html">TProgressBar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_progress_bar.html#a19a95a893c0d7f924118e090e6504745">cast</a> (TWidget widget)</td></tr>
<tr class="separator:a19a95a893c0d7f924118e090e6504745"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>进度条控件。</p>
<p>进度条控件可以水平显示也可以垂直显示，由vertical属性决定。</p>
<p>progress_bar_t是widget\_t的子类控件，widget_t的函数均适用于progress_bar_t控件。</p>
<p>在xml中使用"progress\_bar"标签创建进度条控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">progress_bar</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;bar1&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;128&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;240&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;40&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">progress_bar</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;bar2&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;280&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;128&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;118&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;20&quot;</span> <span class="keyword">vertical</span>=<span class="stringliteral">&quot;true&quot;</span>/&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/basic.xml">basic demo</a></p>
<p>在c代码中使用函数progress_bar_create创建进度条控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/progress_bar.c">progress_bar demo</a></p>
<p>可用通过style来设置控件的显示风格，如字体的大小和颜色等等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">style</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;gold&quot;</span> <span class="keyword">fg_color</span>=<span class="stringliteral">&quot;#c0c0c0&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L183">theme default</a> </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a529f9e25961e0c1f168d60a190658261"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a529f9e25961e0c1f168d60a190658261">&#9670;&nbsp;</a></span>TProgressBar()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TProgressBar.TProgressBar </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a55e958c57b6310dfc7797ae893a64823"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55e958c57b6310dfc7797ae893a64823">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_progress_bar.html">TProgressBar</a> awtk.TProgressBar.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<a id="a19a95a893c0d7f924118e090e6504745"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19a95a893c0d7f924118e090e6504745">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_progress_bar.html">TProgressBar</a> awtk.TProgressBar.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为progress_bar对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>progress_bar对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>progress_bar对象。 </dd></dl>

</div>
</div>
<a id="aee61cc5487f7a8bfe4c8a43d274d9d6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee61cc5487f7a8bfe4c8a43d274d9d6d">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TWidget awtk.TProgressBar.create </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建progress_bar对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a4c876fd30cd677853fd2eb9ccdb07317"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c876fd30cd677853fd2eb9ccdb07317">&#9670;&nbsp;</a></span>getMax()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TProgressBar.getMax </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最大值(缺省为100)。 </p>

</div>
</div>
<a id="aef6561d531ef80d4d55cb57a63175cc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef6561d531ef80d4d55cb57a63175cc3">&#9670;&nbsp;</a></span>getPercent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TProgressBar.getPercent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取进度百分比。</p>
<blockquote class="doxtable">
<p>当max为100时，percent和value取整后一致。 </p>
</blockquote>
<dl class="section return"><dt>返回</dt><dd>返回百分比。 </dd></dl>

</div>
</div>
<a id="ad0f80b4834f578cdd8b9935d305d189f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0f80b4834f578cdd8b9935d305d189f">&#9670;&nbsp;</a></span>getShowText()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TProgressBar.getShowText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否显示文本。 </p>

</div>
</div>
<a id="af84ca760363ba0f2aefd17d259f7d9bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af84ca760363ba0f2aefd17d259f7d9bd">&#9670;&nbsp;</a></span>getVertical()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TProgressBar.getVertical </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>进度条的是否为垂直方向。 </p>

</div>
</div>
<a id="ab2e75e0fff2d6c0f1a37f3c50693df6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2e75e0fff2d6c0f1a37f3c50693df6f">&#9670;&nbsp;</a></span>setMax()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TProgressBar.setMax </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置最大值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max</td><td>最大值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a14317c09d92c674613e519559bea8bc9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14317c09d92c674613e519559bea8bc9">&#9670;&nbsp;</a></span>setShowText()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TProgressBar.setShowText </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>show_text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置进度条的是否显示文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">show_text</td><td>是否显示文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a9fcccb25bb08ac8c7f256b13228b669d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9fcccb25bb08ac8c7f256b13228b669d">&#9670;&nbsp;</a></span>setValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TProgressBar.setValue </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置进度条的进度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>进度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a6ef4c9e99848488a648417da342ff562"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ef4c9e99848488a648417da342ff562">&#9670;&nbsp;</a></span>setVertical()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TProgressBar.setVertical </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>vertical</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置进度条的方向。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">vertical</td><td>是否为垂直方向。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TProgressBar.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
